/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.designPatterns.creational.abstractFactory;

import ac.za.designPatterns.creational.abstractFactory.factory.AsbstractFactory;
import ac.za.designPatterns.creational.abstractFactory.factory.StudentFactory;
import ac.za.designPatterns.creational.abstractFactory.model.Student;

/**
 *
 * @author Sandiso Toto
 */
public class MainDriver {
    public static void main(String[]args){
        AsbstractFactory asbstractFactory1 = new AsbstractFactory();
        
        StudentFactory studFactory = asbstractFactory1.getStudentFactory("fullTimeStudent");
        Student stud1 = studFactory.getStudentType("under_grad");
        System.out.println("Under-graduate student amount: " + stud1.paymentMethod());
        
         AsbstractFactory asbstractFactory2 = new AsbstractFactory();
        StudentFactory studFactory2= asbstractFactory2.getStudentFactory("parTimeStudent");
        Student stud2 = studFactory2.getStudentType("post_grad");
        System.out.println("Post-graduate student amount: " + stud2.paymentMethod());
    
    
    }
}
